<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <body>

        <ui:composition>




            <div class="enunciado">
                <!--                <h:outputText value="{status.index + 1}" />-->
                <!--                <h:outputText value=" - " />-->
                <h:outputText value="#{questaoTemp.autor}" />
                <h:outputText value=" - " />

                <!--                <script type="text/javascript" src="resources/js/nicEdit.js"></script>
                                <script type="text/javascript">
                                    bkLib.onDomLoaded(function() {
                                        myNicEditor.setPanel('enun');
                                    });
                                </script>-->

                <!--                <div id="enunci">{questaoTemp.enunciado}</div>-->
                <h:outputText value="#{questaoTemp.enunciado}" escape="false" />

                <br />
            </div>
            <div class="textoAjuda">
                <h:outputText value="#{questaoTemp.textoAjuda}" />
                <br />
            </div>
            <div class="itens">

                <!--Para multipla Escolha-->
                <h:panelGroup styleClass="itens" rendered="#{questaoTemp.tipoQuestao.multiplaEscolha}">

                    <c:forEach items="#{questaoTemp.items}" var="itemTemp" >
                        <div style="display: block" >
                            <h:outputText value="(x) - " rendered="#{itemTemp.verdadeiro}"  />
                            <h:outputText value="( ) - " rendered="#{!itemTemp.verdadeiro}" />
                            <h:outputText value="#{itemTemp.descricao}" escape="false" />
                        </div>
                    </c:forEach>
                </h:panelGroup>

                <!--Para multipla Seleção-->
                <h:panelGroup styleClass="itens" rendered="#{questaoTemp.tipoQuestao.multiplaSelecao}">

                    <c:forEach items="#{questaoTemp.items}" var="itemTemp" >

                        <div style="display: block" >
                            <h:outputText value="[x] - " rendered="#{itemTemp.verdadeiro}" />
                            <h:outputText value="[ ] - " rendered="#{!itemTemp.verdadeiro}" />
                            <h:outputText value="#{itemTemp.descricao}" escape="false" />
                        </div>
                    </c:forEach>
                </h:panelGroup>

                <!--Para verdadeiro ou falco-->
                <h:panelGroup styleClass="itens" rendered="#{questaoTemp.tipoQuestao.verdadeiroOuFalso}">

                    <c:forEach items="#{questaoTemp.items}" var="itemTemp" >
                        <div style="display: block" >
                            <h:outputText value="(V) - " rendered="#{itemTemp.verdadeiro}" />
                            <h:outputText value="(F) - " rendered="#{!itemTemp.verdadeiro}" />
                            <h:outputText value="#{itemTemp.descricao}" escape="false" />
                        </div>
                    </c:forEach>
                </h:panelGroup>

                <!--para Descritiva-->
                <h:panelGroup styleClass="itens" rendered="#{questaoTemp.tipoQuestao.descritiva}">

                    <c:forEach items="#{questaoTemp.items}" var="itemTemp" >

                        <div style="display: block">
<!--                            <h:outputText value="Opção de Resposta" style="color: gray; font-size: 0.6em" />-->
                            <h:outputText value="#{itemTemp.descricao}" escape="false" />
                            <br />
                        </div>
                    </c:forEach>
                </h:panelGroup>

            </div>






        </ui:composition>

    </body>
</html>
